package com.dabai.iot.core.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 消费组输入类
 *
 * @author kev1n
 */
@Data
public class ConsumerGroupInput implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 消费组名称
     */
    @Schema(description = "消费组名称")
    @NotBlank(message = "消费组名称不能为空")
    @Size(min = 1, max = 64, message = "消费组名称长度必须在1-64之间")
    private String groupName;

    /**
     * 订阅Ids
     */
    @Schema(description = "订阅Ids")
    @NotNull
    private List<Long> subscribeIds;

}
